package com.example.reservationbilliards.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
public class CourseListResponse {
    private String code;
    private Integer currentPage;
    private String key;
    private String msg;
    private Integer pageSize;
    private String rcode;
    private List<Course> result;
    private String rmsg;
    private String rsys;
    private String sign;
    private Long timestamp;
    private Integer total;

    @Data
    public static class Course {
        private String applyName;
        private Object classStatus;
        private String classroom;
        private CourseButtonStatus courseButtonStatus;
        private Integer courseClassArrangeId;
        private String courseName;
        private Object courseStatus;
        private String courseTime;
        private Object endTime;
        private Integer maxReservation;
        private String mobile;
        private String orderNo;
        private String passUrl;
        private Integer remainNumber;
        private Object startTime;
        private String timeDetail;
        private List<User> userList;

        @Data
        @AllArgsConstructor
        @NoArgsConstructor
        public static class CourseButtonStatus {
            private String code;
            private String name;
            private String value;
        }

        @Data
        static
        class User {
            private String applyName;
            private String headPortrait;
            private String mobile;
        }
    }
}